package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.AppointmentVO;import com.lanchetech.entity.Appointment;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.Date;import java.util.List;

@Mapper
public interface AppointmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    Appointment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);

    List<AppointmentVO> findAllPage(PageReq req);

    Long countByTime(@Param("time") Date time, @Param("appointmentSettingId") Long appointmentSettingId);

    Appointment findOneByTradeNo(@Param("tradeNo") String tradeNo);

    Appointment findOneByRefundNo(@Param("refundNo")String refundNo);


}